<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .clock {
      margin: 50px auto;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      padding: 10px;
      box-shadow: inset 0 0 0 3px #999, inset 0 0 10px black, 0 0 10px rgba(0, 0, 0, .4);
    }

    .clock-face {
      position: relative;
      width: 100%;
      height: 100%;
      transform: translateY(-3px);
    }

    .hand {
      position: absolute;
      top: 50%;
      transform-origin: 100%;
      width: 50%;
      height: 6px;
      background-color: #999;
      transform: rotate(90deg);
      transition: all .03;

    }
  </style>
</head>

<body>
  <div class="clock">
    <div class="clock-face">
      <div class="hand hour"></div>
      <div class="hand min"></div>
      <div class="hand second"></div>
    </div>
  </div>
  <script>
    const second = document.querySelector('.second');
    const min = document.querySelector('.min');
    const hour = document.querySelector('.hour');
    function setDate() {
      const date = new Date();
      const sec = date.getSeconds();
      const secProgress = (sec * 6) + 90;
      console.log(secProgress);
      second.style.transform = `rotate(${secProgress}deg)`
    }
    setInterval(() => {
      setDate()
    }, 1000);
  </script>
</body>

</html>